﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Table.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	查看考勤
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="tparent" style="width:100%;overflow:auto;">
    <script type="text/javascript">
        //alert($("#tparent").parent().width());
        $("#tparent").css("width", $("#tparent").parent().width());
    </script>
    <table style="white-space:nowrap;">
        <tr>
            <%
                string[] headers = ((string)ViewData["TableHeader"]).Split(new char[] { ',' });
                for (int i = 0; i < headers.Length; i++) {
                    Response.Write("<th>" + headers[i] + "</th>");
                }
            %>
        </tr>
    </table>
    </div>
</asp:Content>
